﻿#ifndef CMAP_WIDGET_H
#define CMAP_WIDGET_H 
/********************************************************************************
** @ Date:2024/02/28
** @ Author: HanJiaXin
** @ Description:机器人巡检地图控件
** @ Version:1.0.0
** @ ClassName:CMapWidget
** @ Fun:
********************************************************************************/
#include <QWidget>
#include "ui_CMapWidget.h"
#include "CRBasicDataBase.h"
#include "IFDev.h"
#include "CRCardBase.h"

class CMapWidget : public CRCardBase
{
	Q_OBJECT

public:
	CMapWidget(QString sSceneGuid,IFDev* pDev, CRBasicDataBase* pBasicData,QWidget *parent = nullptr);
	~CMapWidget();	
private:
	void initUi();
	void setStyleSheetFile();	//设置界面样式表
private slots :
	void slotRefushData();//定时器刷新槽函数

private:
	Ui::CMapWidgetClass ui;
	QTimer* m_pTimer;//刷新机器人实时位置定时器
	CRBasicDataBase* m_pBasicDataBase;//基础数据
	IFDev* m_pDev;
	QString m_sSceneGuid;//归属场景GUID
	CDevDataRob* m_pDevData;
	bool m_bIsAutoMapCenter;//是否已经自动调整地图居中
};

#endif
